package site.koudai.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("`user`")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer deptId;
    private String username;
    private String password;

    @TableField(exist = false)
    private List<Role> roleList;
    @TableField(exist = false)
    private List<Permission> permissionList;

}
